package day13_Io.demo01_file;

import java.io.File;

public class 删除copy {
    public static void main(String[] args) {
        File file = new File("E:\\csw\\Demo\\copy");
        show(file);
    }
    public static void show(File file) {
        File[] files = file.listFiles();
        for (File file1 : files) {
            if (file1.isFile()){
                file1.delete();
            }else{
                show(file1);
            }
        }
        file.delete();
    }
}
